import collections
#这样就创建了一个空的计数器实例c。
# c = collections.Counter()
# c = collections.Counter(['a','a','b','b','c']) #从list创建
# print(c)
#
# c = collections.Counter(('a','a','b','b','c')) #从tuple创建
# print(c)
#subtract函数与update函数类似，不过它是从计数器中减去可迭代对象中各种值出现的次数，比如
c.subtract("aabbcd")
# c = collections.Counter({'a':2,'b':2,'c':1}) #从dict创建
#print(c)

c = collections.Counter("aabbc") #从字符串创建
c.update("aabbcd") #字符串也是可迭代对象
#
print(c)
#import collections

# point = collections.namedtuple('Points', ['x', 'y'])
# p1 = point(2, 3)
# p2 = point(4, 2)
#
# print(p1) # Points(x=2, y=3)
# print(p2) # Points(x=4, y=2)

num = collections.namedtuple('heshuai','x,y')
p1= num(2,4)
p2= num(3,4)
print(p1)
print(p2)

import collections
def Func():
    d = collections.deque()
    n = int(input())
    # ********** Begin ********** #

    if n % 2 == 1:
        for i in range(n):
            if i % 2 == 0:
                d.append(i)
            else:
                d.appendleft(i)

        # ********** End ********** #
    print(d)


import collections
def Func():
    d = collections.deque()
    n = int(input())
    # ********** Begin ********** #
    for s in range(n):
        if s % 2 == 0:
            d.append(s)
        else:
            d.appendleft(s)
    # ********** End ********** #
    print(d)